home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
wfc007.000
/
include
/
cnetfile.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-08
|
2KB
|
77 lines
#if ! defined( NETWORK_FILE_CLASS_HEADER )
/*
** Author: Samuel R. Blackburn
** CI$: 76300,326
** Internet: sammy@sed.csc.com
**
** You can use it any way you like.
*/
#define NETWORK_FILE_CLASS_HEADER
class CNetworkFileInformation : public CObject
{
DECLARE_SERIAL( CNetworkFileInformation )
private:
void m_Initialize( void );
public:
CNetworkFileInformation();
CNetworkFileInformation( FILE_INFO_3 *information_p );
virtual ~CNetworkFileInformation();
DWORD ID;
DWORD Permissions;
DWORD NumberOfLocks;
CString PathName;
CString UserName;
virtual void Copy( FILE_INFO_3 *source );
virtual void Empty( void );
virtual void Serialize( CArchive& archive );
};
class CNetworkFiles : public CNetwork
{
DECLARE_SERIAL( CNetworkFiles )
private:
void m_Initialize( void );
protected:
/*
** Workstation information variables
*/
FILE_INFO_3 *m_103InformationBuffer;
/*
** File Information enumeration variables
*/
DWORD m_103ResumeHandle;
DWORD m_103CurrentEntryNumber;
DWORD m_103NumberOfEntriesRead;
DWORD m_103TotalNumberOfEntries;
public:
CNetworkFiles();
CNetworkFiles( LPCTSTR machine_name );
virtual ~CNetworkFiles();
virtual void Close( void );
virtual BOOL Close( CNetworkFileInformation& file_to_close );
virtual BOOL Enumerate( void );
virtual BOOL GetNext( CNetworkFileInformation& information );
virtual void Serialize( CArchive& archive );
};
#endif // NETWORK_FILE_CLASS_HEADER